// JavaScript Document
 function pageInfo(totalPage,curPage){
	 var pageHtml ="";
	 if(totalPage > 1 && curPage > 1){
		 pageHtml += "<a class=\"nextPage\" href=\"javascript:void(0);\" onclick=\"searchList("+parseInt(curPage-1)+")\">上一页</a>";
	 }else{
		 pageHtml += '<span class="disabled">上一页</span>';
	 }
	 if(curPage < 5){
		 for(var i=1;i<=(totalPage-curPage>5?curPage+5:totalPage);i++){
			 if(i == curPage){
				 pageHtml += '<span class="current">'+i+"</span>";
			 }else{
				 pageHtml += "<a class=\"tcdNumber\" href=\"javascript:void(0);\" onclick=\"searchList("+i+")\">"+i+"</a>";
			 }
		 }
	 }else{
		 for(var i=curPage-5>0?curPage-5:1;i<=(totalPage-curPage>5?curPage+5:totalPage);i++){
			 if(i == curPage){
				 pageHtml += '<span class="current">'+i+"</span>";
			 }else{
				 pageHtml += "<a class=\"tcdNumber\" href=\"javascript:void(0);\" onclick=\"searchList("+i+")\">"+i+"</a>";
			 }
		 }
	 }
	 if(totalPage==0){
		 pageHtml += '<span class="current">1</span>';
	 }
	 if(totalPage>1 && curPage<totalPage){
		 pageHtml += "<a class=\"nextPage\" href=\"javascript:void(0);\" onclick=\"searchList("+parseInt(curPage+1)+")\">下一页</a>";
 	}else{
 		 pageHtml += '<span class="disabled">下一页</span>';
 	}
 	return pageHtml;
 }
 
 function gotoPage(totalPage){
	 if($("#toPageNo").val()==null || $("#toPageNo").val()==''){
		 alert("请输入需要跳转的页面！");
		 return false;
	 }
	 if(totalPage<$("#toPageNo").val()){
		 alert("请输入有效的页码！");
		 return false;
	 }
	 searchList($("#toPageNo").val());
 }

 function columAuto(){
 	var linums=$("#c-rcontent>ul>li:first li").length;
 	var parentLi=$("#c-rcontent>ul>li");
 	//var rowButNums=parentLi.eq(1).find("button").length;
 	var autoli=$("#c-rcontent>ul>li li");
 		autoli.width((1/linums)*100+"%");
 	//var but=autoli.find("button");
 	//	but.width((1/rowButNums-0.05)*100+"%");
 }